#!/bin/bash
#统计nginx访问日志
if [ $# -ne 1 ];then
      echo "请输入nginx的访问日志文件"
      exit 1
fi 

awk '{print $1}' $1 |sort|uniq -c|sort -rn